package com.xb.system.service;

import com.xb.model.system.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xb.model.vo.AssginMenuVo;
import com.xb.model.vo.RouterVo;

import java.util.List;

/**
 * <p>
 * 菜单表 服务类
 * </p>
 *
 * @author xb
 * @since 2023-08-23
 */
public interface SysMenuService extends IService<SysMenu> {

    //获取菜单树
    List<SysMenu> findNodes();

    boolean removeById(Long id);

    //根据角色获取菜单
    List<SysMenu> findSysMenuByRoleId(Long roleId);

    //给角色分配菜单
    void doAssign(AssginMenuVo assginMenuVo);

    //获取用户菜单
    List<RouterVo> findUserMenuList(Long userId);

    //按钮权限
    List<String> findUserBtnPermsList(Long userId);
}
